<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>营销系统登录</title>
<link rel="stylesheet" type="text/css" href="moban/css/index.css" />
<link rel="stylesheet" type="text/css" href="moban/css/animate-custom.css" />
<script type="text/javascript" src="/js/jquery-3.5.1.js"></script>
<script type="text/javascript">
	function validate() {
		var username = $("#username").value;
		var password = $("#password").value;
		alert(username);
		var requestDate = {};
		requestDate["name"] = username;
		requestDate["password"] = password;
		if(username == null){
			alert("请输入用户名！");
		}
		if(password == null){
			alert("请输入密码");
		}
		
	}
</script>
</head>
<body style="background: #fff url(moban/images/bg.jpg) repeat top left;">

	<div id="container_demo">
		<a class="hiddenanchor" id="toregister"></a> <a class="hiddenanchor"
			id="tologin"></a>
		<div id="wrapper">
			<div id="login" class="animate form">

				<h1>库存ERP进销存系统</h1>
				<p>
					<label for="username" class="uname" data-icon="u">您的账户名</label> 
					<input
						id="username" name="username" required="required" type="text"
						placeholder="请输入账户名" />
				</p>
				<p>
					<label for="password" class="youpasswd" data-icon="p">您的密码</label>
					<input id="password" name="password" required="required"
						type="password" placeholder="请输入密码" />
				</p>
				<p class="form form-horizontal validate-form">
				</p>
				<p class="login button">
					<input type="submit" value="登录" onclick="validate();" />
				</p>
				<p class="change_link">
					不是成员?<a href="#toregister" class="to_register">加入我们</a>
				</p>

			</div>

			<div id="register" class="animate form">
				<form action="user/touser" autocomplete="on" method="post">
					<h1>注册</h1>
					<p>
						<label for="usernamesignup" class="uname" data-icon="u">用户名</label>
						<input id="usernamesignup" name="name" required="required"
							type="text" placeholder="用户名" />
					</p>
					<p>
						<label for="passwordsignup" class="youpasswd" data-icon="p">密码</label>
						<input id="passwordsignup" name="password" required="required"
							type="password" placeholder="密码" />
					</p>
					<p>
						<label for="passwordsignup" class="youpasswd" data-icon="p">性别</label>

						<select class="form-control" name="sex" id="sex">
							<option value="0">男</option>
							<option value="1">女</option>
						</select>

					</p>
					<p>
						<label for="passwordsignup" class="youpasswd" data-icon="p">年龄</label>
						<input id="passwordsignup" name="year" required="required"
							type="text" placeholder="年龄" />
					</p>
					<p>
						<label for="passwordsignup" class="youpasswd" data-icon="p">联系电话</label>
						<input id="passwordsignup" name="phone" required="required"
							type="text" placeholder="联系电话" />
					</p>

					<p class="signin button">
						<input type="submit" value="注册" />
					</p>
					<p class="change_link">
						已经是成员?<a href="#tologin" class="to_register"> 去登录 </a>
					</p>
				</form>
			</div>

		</div>

	</div>

</body>
</html>